﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace SearchBackEnd
{
    [ServiceContract]
    public interface ISearchBackend
    {
        [OperationContract]
        void Index(Page page);
        [OperationContract]
        string[] Search(String[] words);
    }

    [Serializable]
    [DataContract]
    public class Page
    {
        [DataMember]
        public String Name { get; set; }
        [DataMember]
        public String Content { get; set; }
    }
}
